package jwdt.xadmin.work.bean;


import java.util.List;

import jwdt.common.util.CacheUtil;

import com.ezerg.db.Jdb;
import com.ezerg.db.annotation.Column;
import com.ezerg.db.annotation.Table;
import com.ezerg.fastjson.annotation.JSONField;

@Table(name="t_docclass", keys={"classid"}, comment="文档类型管理")
public class TDocClass implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Column(value="classid", comment="ID")
	private Integer classid;
	
	@Column(value="fid", comment="ID")
	private Integer fid;
	
	@Column(value="name", comment="名称")
	private String name;
	
	@Column(value="dt", comment="创建时间")
	private String dt;
	
	@Column(value="zt", comment="状态")
	private Integer zt;

	public Integer getClassid() {
		return classid;
	}

	public void setClassid(Integer classid) {
		this.classid = classid;
	}
	
	public Integer getFid() {
		return fid;
	}

	public void setFid(Integer fid) {
		this.fid = fid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDt() {
		return dt;
	}

	public void setDt(String dt) {
		this.dt = dt;
	}

	public Integer getZt() {
		return zt;
	}

	public void setZt(Integer zt) {
		this.zt = zt;
	}
	
	@JSONField(serialize=false)
	@SuppressWarnings("rawtypes")
	public List getChildren() {
		return Jdb.get().query(TDocClass.class, "fid=? ORDER BY classid", new Object[]{this.classid}, CacheUtil.C0);
	}
}
